package com.xjy.system.service;

import com.xjy.common.core.domain.TreeSelect;
import com.xjy.common.core.domain.entity.SysBudget;
import com.xjy.common.core.mybatisplus.core.IServicePlus;

import java.util.List;

/**
 * 预算科目信息Service接口
 *
 * @author xjy
 * @date 2022-02-07
 */
public interface ISysBudgetService extends IServicePlus<SysBudget> {

	List<SysBudget> selectBudgetList(SysBudget sysBudget);

	SysBudget getByIdInfo(Long id);

    List<TreeSelect> treeselectList(List<SysBudget> list);

	String checkDeptNameUnique(SysBudget sysBudget);

	int insertBudget(SysBudget sysBudget);

	int selectNormalChildrenDeptById(Long id);

	int updateBudget(SysBudget sysBudget);

	boolean hasChildByDeptId(Long id);

	int deletebudgetById(Long id);

	List<Integer> selectBudgetListByRoleId(Long roleId);

	List<TreeSelect> buildBudgetTreeSelect(List<SysBudget> depts);
}
